FigureCallback(event)
Callback called by a MatlabServer object for generating a Matlab figure as response
event | modelit.webserver.HttpExchange | with the request data and methods to generate a response. |
No output
server = modelit.web.server.Server('localhost', 8081, @FigureCallback).start() % Open a webbrowser and type: http://localhost:8081 in the address bar % Now a figure with the Matlab logo appears in the browser.